package com.xydzxt.www.service;

import com.xydzxt.www.dao.RegistDao;
import com.xydzxt.www.model.Regist;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegistService {
    @Autowired
    RegistDao registDao;

    public List<Regist> selectAllRegist(Regist regist){
        return registDao.selectAllRegist(regist);
    }

    public Regist valiUser(Regist regist){
        return registDao.valiUser(regist);
    }

    public Regist selectByIdNumber(String identityNumber){
        return registDao.selectByIdNumber(identityNumber);
    }

    public boolean insert(Regist regist){
        return registDao.insert(regist);
    }

    public boolean update(Regist regist){
        return registDao.update(regist);
    }
}
